#!/usr/bin/env python3

# *_coding: utf-8 _*_
# @Time   :2020/4/29 16:30
# @Author :zhangyan
# @Software  :PyCharm

class Animal():
    def __init__(self, name, age, sex):
        self.name = name
        self.age = age
        self.sex = sex

    def __str__(self):
        return ("姓名:%s 年龄:%s" % (self.name, self.age))

    def func(self):
        print(self.name,self.age)

    @staticmethod
    def aa():
        return Animal.name, Animal.age, Animal.sex


animal = Animal('张岩', 18, '男')
# print(animal.func())
import types
print(isinstance(animal.func,types.MethodType))
print(isinstance(Animal.func,types.FunctionType))
aa = Animal.func(Animal('张岩', 18, '男'))
print(type(animal.func))
